<nav id="sidebar" aria-label="Main Navigation">
    <!-- Side Header -->
    <div class="content-header bg-white-5">
        <!-- Logo -->
        <a class="font-w600 text-dual" href="/">
            后台管理
        </a>
        <!-- END Logo -->
    </div>
    <!-- END Side Header -->

    <!-- Side Navigation -->
    <div class="content-side content-side-full">
        <ul class="nav-main">
            <li class="nav-main-item">
                <a class="nav-main-link <%= index==='abc' ? 'active' : '' %>" href="/">
                    <i class="nav-main-link-icon si si-speedometer"></i>
                    <span class="nav-main-link-name">首页</span>
                </a>
            </li>
            <li class="nav-main-heading">User Interface</li>
            <% const data = [{
                title:"商品管理",
                href:"/goods",
                icon:"si-energy",
                power:1
            },{
                title:"广告素材管理",
                href:"/banner",
                icon:"si-calendar",
                power:1
            },{
                title:"用户管理",
                href:"/user",
                icon:"si-calendar",
                power:0
            },{
                title:"订单管理",
                href:"/order",
                icon:"si-compass",
                power:0
            }] %>
            
            <% for(let i=0;i<data.length;i++){ %>
                <% if(power <= data[i].power){ %>
                    <li class="nav-main-item">
                        <a class="nav-main-link <%= i===index ? 'active' : '' %>" href="<%= data[i].href %>">
                            <i class="nav-main-link-icon si <%= data[i].icon %>"></i>
                            <span class="nav-main-link-name"><%= data[i].title %></span>
                        </a>
                    </li>
                <% } %>
            <% } %>

        </ul>
    </div>
    <!-- END Side Navigation -->
</nav>
<!-- END Sidebar -->